package com.lean.android.ad.duration.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.lean.android.ad.duration.database.entities.PageDurationEntity

@Dao
internal interface PageDurationDao {

    @Insert
    suspend fun insert(entity: PageDurationEntity)

    @Query("select * from page_duration")
    suspend fun getAll(): List<PageDurationEntity>

    @Query("delete from page_duration")
    suspend fun deleteAll()

}